

.container
{
  background-color: white;
  border: #e4c1ea;
  padding: auto;
}

.loading-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 1000;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.container {
  max-width: 800px;
  margin: 80px auto 0;
  margin-top: 200px;
  margin-bottom: 200px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: 'Segoe UI', 'Roboto', 'SimSun', serif;
}

.details-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  border: 2px solid #90caf9; /* 浅蓝色边框 */
  border-radius: 10px;
  background-color: #e3f2fd; /* 浅蓝色背景 */
}
        
.placeName,
.input-time {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 45%;
}

.placeName h2,
.input-time label {
  font-size: 16px;
  margin-right: 10px;
}

.placeName input,
.input-time input[type="date"] {
  flex-grow: 1;
  padding: 6px 10px;
  border: 1px solid #90caf9; /* 浅蓝色边框 */
  border-radius: 5px;
  font-size: 14px;
}

.placeName button,
.input-time button {
  margin-left: 10px;
  padding: 6px 12px;
  font-size: 14px;
}

.saved-time-box {
  font-size: 14px;
  width: 100%;
  margin-top: 10px;
}

.description-editor {
  width: 1000px;
  flex-grow: 2;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px;
  border-radius: 10px;
  margin: 0 auto; /* 20% of viewport height */
}

.title-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.title {
  background-color: #90caf9; /* 浅蓝色背景 */
  border-radius: 10px;
  padding: 10px 20px;
  width: 100%;
  max-width: 600px;
}

.title-text {
  display: inline-block;
  padding: 5px 15px;
  position: relative;
  z-index: 2;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  box-shadow: 0 4px 8px rgba(250, 249, 249, 0.05);
  border-radius: 4px;
}

.title-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 1;
}

.fixed-description {
  width: 700px;
  display: flex;
  flex-direction: column;
  max-height: 300px;
  overflow-y: visible;
  padding: 20px;
  border: 2px solid #90caf9; /* 浅蓝色边框 */
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-family: 'SimSun', serif;
  font-size: 16px;
  margin-bottom: 20px;
  background-color: #edf7fe; /* 浅蓝色背景 */
}

.text-description {
  font-family: 'SimSun', serif;
  font-size: 16px;
  margin-bottom: 15px;
  
}
.text-description.first-description {
  width: 700px;
  display: flex;
  align-items:center;
}

.text-description.btn
{
  margin-left: 30px;
  margin-right: 30px;
  display: flex;
  align-items:center;
}

.description-input {
  font-family: 'SimSun', serif;
  border-radius: 8px;
  border: 2px solid #90caf9; /* 浅蓝色边框 */
  padding: 8px 12px;
  flex-grow: 1;
  margin-right: 10px;
  background-color: #f1f3f6; /* 浅蓝色背景 */
  width: 600px; /* 减小宽度 */
  height: 150px; /* 增加高度 */
}

.description-input:focus {
  outline: none;
  border-color: #64b5f6; /* 深蓝色边框 */
}

.button-container{
  display:flex;
  justify-content: center;
  margin-top: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.button-container.text-description.btn {
  margin-right: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.green-button {
  background-color:rgba(180, 227, 237, 0.8);
  border: none;
  border-radius: 5px;
  padding: 8px 12px;
  cursor: pointer;
  font-family: 'SimSun', serif;
  font-size: 16px;
  color: #333;
  transition: background-color 0.3s ease;
  margin-left: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.green-button:hover {
  background-color: #e7d2f2; 
}

.generate-button {
  animation: pulse 2s infinite;
}

.mood-add-tags {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'SimSun', serif;
  padding: 20px;
  margin-bottom: 20px;
  background-color: #e3f2fd; /* 浅蓝色背景 */
  border-radius: 10px;
}

.mood-tags-container {
  background-color: rgba(180, 237, 235, 0.8);
  border-radius: 10px;
  padding: 10px 20px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 600px;
}

.mood-tags {
  color: white;
  font-family: 'SimSun', serif;
  font-size: 18px;
  font-weight: bold;
}

.tag-form {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 600px;
}

.tag-input,
.tag-select {
  padding: 8px 12px;
  border: none;
  border-radius: 20px;
  margin-right: 10px;
  font-family: 'SimSun', serif;
  font-size: 14px;
  flex: 1;
}

.tag-select {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="none" viewBox="0 0 24 24" stroke="currentColor" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg>');
  background-position: calc(100% - 20px) 50%;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

.tag-button {
  font-size: 14px;
  font-family: 'SimSun', serif;
  padding: 8px 16px;
  border: none;
  border-radius: 10px;
  background-color: #90caf9; /* 浅蓝色背景 */
  cursor: pointer;
  color: rgb(249, 249, 250);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* 标签之间的距离 */
}

.tag-list > div {
  display: flex;
  align-items: center;
  background-color:white;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
} 

.tag-list > div > span {
  margin-right: 5px; /* 标签名和心情名之间的距离 */
}

.tag-list > div .edit-input {
  border: none;
  background-color: transparent;
  font-size: 14px;
  padding: 0;
  width: 100px; /* 编辑框宽度 */
}

.tag-item {
  display: inline-flex;
  align-items: center;
  padding: 8px;
  border: 2px solid rgb(139, 203, 200);
  border-radius: 15px;
  margin-right: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 14px;
}
.tag-text {
  margin-right: 10px;
}

.edit-input {
  padding: 8px;
  border: 2px solid rgb(139, 203, 200);
  border-radius: 20px;
  font-family: 'SimSun', serif;
  font-size: 14px;
}

.tag-delete-button {
  margin-left: 10px;
  padding: 5px;
  border: none;
  border-radius: 50%;
  background-color: #52b9e4ac;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tag-delete-button:hover {
  background-color: #e4c1ea;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Existing styles... */

.modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal-content {
  width: 90%; /* 调整为所需宽度 */
  max-height: 90vh; /* 调整为视窗高度的百分比，确保内容不会超出屏幕 */
  overflow-y: auto; /* 竖直方向滚动 */
  background: white; /* 背景色 */
  padding: 20px;
  position: relative; /* 为关闭按钮和其他绝对定位的元素做准备 */
  border-radius: 20px;
}

.image-gallery {
  display: flex;
  flex-wrap: nowrap; /* 防止图片换行 */
  overflow-x: auto; /* 水平滚动 */
  gap: 10px; /* 图片之间的间隙 */
}

.image-item img {
  max-width: 200px; /* 最大宽度为200px，你可以根据需要调整 */
  max-height: 150px; /* 最大高度为150px，你可以根据需要调整 */
  height: auto; /* 保持图片比例不变 */
  width: auto; /* 保持图片比例不变 */
  object-fit: contain; /* 确保图片完整显示在设定的宽高内 */
}

.converted-image
{
  max-width: 300px;
  max-height: 300px;
  height: auto; /* 保持图片比例不变 */
  width: auto; 
  object-fit: contain; /* 确保图片完整显示在设定的宽高内 */
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

.btn-delete {
  background-color: #e57373;
  color: #fff;
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.btn-delete:hover {
  background-color: #ef5350;
}


/* 
关键词生成模态框 */
.key-modal {
  display: block;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.key-modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #c9f3fa;
  border-radius: 20px;
  width: 30%;
}

.key-close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.key-close-button:hover,
.key-close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* 
关键词生成模态框 */
.improve-modal {
  display: block;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.improve-modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #c9f3fa;
  width: 30%;
  border-radius: 20px;
}

.improve-close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.improve-close-button:hover,
.improve-close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* 
心情标签生成模态框 */
.mood-modal {
  display: block;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.mood-modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  width: 30%;
  border: 1px solid #888;
  border-radius: 20px;
}

.mood-close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.mood-close-button:hover,
.mood-close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* 文字转图片生成模态框 */
.genePhoto-modal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.genePhoto-modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 30px;
  border: 1px solid #888;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  width: 50%;
  max-width: 600px;
}

.genePhoto-close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.genePhoto-close-button:hover,
.genePhoto-close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.generated-image {
  max-width: 300px;
  max-height: 300px;
  max-width: 100%;
  height: auto;
}
